package mylibrary.spring.injection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Test {

	public static void main(String[] args) {
		
		ApplicationContext app = new ClassPathXmlApplicationContext("app-context.xml");
		
		
		//DoAction action = new DoAction();
		//action.setAdminService((AdminService)app.getBean("adminService"));
		
		DoAction action = (DoAction)app.getBean("action");
		action.test();
	}
}
